<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <script>
        setTimeout(function () {
            console.log('setTimeout');
        })

        let a = new Promise(function (resolve, reject) {
            console.log('promise');

            resolve()
        }).then(function () {
            console.log('then');
        })
        // a.then(() => {
        // console.log(1)
        // });
        a.then()

        console.log('console');
        // promise console then setTimeout
    </script>
</body>

</html>